package com.lyl.security.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Mr.Luo
 */

@Getter
@AllArgsConstructor
public enum ErrorCode implements BizCode{
    //认证异常
    UNAUTHORIZED(401, "认证异常"),
    ACCESS_DENIED(402, "权限不足, 无法访问"),
    NOT_FOUND(404,"接口不存在"),
    METHOD_NOT_SUPPORT(405,"请求方式不支持"),
    POST_REQUEST_BODY_NOT_JSON(406,"post请求体不是json"),
    SYSTEM_ERROR(500,"系统异常")
    ;

    private final int code;
    private final String msg;
}
